package com.crm.service;

import org.springframework.transaction.annotation.Transactional;

import com.crm.dao.MailDao;
import com.crm.pojo.Mail;

@Transactional
public class MailService {
	private MailDao mailDao;

	public void setMailDao(MailDao mailDao) {
		this.mailDao = mailDao;
	}



	public void save(Mail mail) {
		mailDao.save(mail);
	}

	public Mail findById(String id) {
		return mailDao.get(id);
	}
	
}
